/**
 *  Copyright (C) 2013  Piotr Szczepański
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package edu.pw.elka.gtsna.interaction_index;

import java.util.LinkedHashSet;
import java.util.Set;

import edu.pw.elka.gtsna.coalitionalgames.CoalitionalGame;

/**
 * @author Piotr Lech Szczepański
 * @author P.Szczepanski@ii.pw.edu.pl 
 *
 */
public abstract class InteractionIndex implements InteractionIndexComputable {

	CoalitionalGame cg;
	
	@Override
	public double interaction(int a, int b) {
		Set<Integer> C1 = new LinkedHashSet<Integer>();
		C1.add(a);
		Set<Integer> C2 = new LinkedHashSet<Integer>();
		C2.add(b);
		return interaction(C1,C2);
	}

	@Override
	public double interaction(int a, Set<Integer> C) {
		return interaction(C,a);
	}
	
	@Override
	public double interaction(Set<Integer> C, int a) {
		Set<Integer> C1 = new LinkedHashSet<Integer>();
		C1.add(a);
		return interaction(C,C1);
	}
	
	abstract public void preComputation();


}
